package cn.ywang.register;

/**
 * @Auther: BeatificWang
 * @Date: 2018/9/23 21:37
 */
public enum Color {
	RED() {
		private int r = 255;
		private int g = 0;
		private int b = 0;

		@Override
		public String toString() {
			return this.name() + "{" +
					       "r=" + r +
					       ", g=" + g +
					       ", b=" + b +
					       '}';
		}
	}, BLACK() {
		private int r = 0;
		private int g = 0;
		private int b = 0;

		@Override
		public String toString() {
			return this.name() + "{" +
					       "r=" + r +
					       ", g=" + g +
					       ", b=" + b +
					       '}';
		}
	}, WHITE() {
		private int r = 255;
		private int g = 255;
		private int b = 255;

		@Override
		public String toString() {
			return this.name() + "{" +
					       "r=" + r +
					       ", g=" + g +
					       ", b=" + b +
					       '}';
		}
	}

}
